package com.insist.framework;

import lombok.Data;

/**
 * Created by INSIST on 2016/6/25.
 */
@Data
public class CmmBaseResponse {

    private Boolean success;
    private String message;
    private Object data;

    public static CmmBaseResponse buildResponse(Boolean success, String message){
        CmmBaseResponse responce = new CmmBaseResponse();
        responce.success = success;
        responce.message = message;
        return responce;
    }

    public static CmmBaseResponse buildResponse(Boolean success, String message, Object data){
        CmmBaseResponse responce = new CmmBaseResponse();
        responce.success = success;
        responce.message = message;
        responce.data = data;
        return responce;
    }
}
